<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Embroidermodder: extern/libembroidery/src/array.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js", "TeX/AMSmath.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="logo_embroidermodder_2_0.png"/></td>
  <td id="projectalign">
   <div id="projectname">Embroidermodder<span id="projectnumber">&#160;2.0.0-alpha4</span>
   </div>
   <div id="projectbrief">A free and open source software for machine embroidery</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('array_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">array.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;<a class="el" href="embroidery__internal_8h_source.html">embroidery_internal.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a67090c780a2818616877fb42b3a42e5c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a67090c780a2818616877fb42b3a42e5c">embArray_create</a> (int type)</td></tr>
<tr class="separator:a67090c780a2818616877fb42b3a42e5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50c23acfd8e099acd98cc99bc01801ab"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a50c23acfd8e099acd98cc99bc01801ab">embArray_resize</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a)</td></tr>
<tr class="separator:a50c23acfd8e099acd98cc99bc01801ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f927b9cef227b5c19a8625580a9bad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a60f927b9cef227b5c19a8625580a9bad">embArray_copy</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *dst, <a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *src)</td></tr>
<tr class="separator:a60f927b9cef227b5c19a8625580a9bad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a962196043b716654439ba3d8bd306f64"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a962196043b716654439ba3d8bd306f64">embArray_addArc</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a09945e6e919629c5787e61582c712ba1">EmbArc</a> b)</td></tr>
<tr class="separator:a962196043b716654439ba3d8bd306f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5e33f49a954b6519c3a05217d850a3e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#aa5e33f49a954b6519c3a05217d850a3e">embArray_addCircle</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a87fc13ccd4dbaa7de7c85efde17bba0e">EmbCircle</a> b)</td></tr>
<tr class="separator:aa5e33f49a954b6519c3a05217d850a3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2304cb63de8ef8fe3c922b3a12379bd8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a2304cb63de8ef8fe3c922b3a12379bd8">embArray_addEllipse</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a4e48ebde5bd4d82b875f98b347bdd62c">EmbEllipse</a> b)</td></tr>
<tr class="separator:a2304cb63de8ef8fe3c922b3a12379bd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dfd8819459125dcf1cdadca56a9ffa9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a4dfd8819459125dcf1cdadca56a9ffa9">embArray_addFlag</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#aa8d187896cf7654438e8108ea481b11a">EmbFlag</a> b)</td></tr>
<tr class="separator:a4dfd8819459125dcf1cdadca56a9ffa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a776545527fb7995f227fe97dac89718a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a776545527fb7995f227fe97dac89718a">embArray_addLine</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a62e08237073617de993166ed4a9ab085">EmbLine</a> b)</td></tr>
<tr class="separator:a776545527fb7995f227fe97dac89718a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a756ba04d08ed40f6b20c3021876fa53b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a756ba04d08ed40f6b20c3021876fa53b">embArray_addPath</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#af29045dfeebafdcb66d114b390c4a686">EmbPath</a> b)</td></tr>
<tr class="separator:a756ba04d08ed40f6b20c3021876fa53b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5adb6549f01b7f271bf8acd2cdc5da33"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a5adb6549f01b7f271bf8acd2cdc5da33">embArray_addPoint</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a835ccc3aedf71b57dca6130be87ea463">EmbPoint</a> b)</td></tr>
<tr class="separator:a5adb6549f01b7f271bf8acd2cdc5da33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fe0b8d0f83a3ed40ab37e9b93b8f4af"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a7fe0b8d0f83a3ed40ab37e9b93b8f4af">embArray_addPolyline</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#ab5563c868d8f8174d5be764808a647dd">EmbPolyline</a> b)</td></tr>
<tr class="separator:a7fe0b8d0f83a3ed40ab37e9b93b8f4af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d4a63ac1958f13197dd7e7fd94f5d62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a7d4a63ac1958f13197dd7e7fd94f5d62">embArray_addPolygon</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a2d6988a5f4ba24d26c7eff65dbc9d029">EmbPolygon</a> b)</td></tr>
<tr class="separator:a7d4a63ac1958f13197dd7e7fd94f5d62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d7d2de889cb8778bf80a6c776fb9938"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a8d7d2de889cb8778bf80a6c776fb9938">embArray_addRect</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#ac2f33b151fc40a0da3b14379aa0ec653">EmbRect</a> b)</td></tr>
<tr class="separator:a8d7d2de889cb8778bf80a6c776fb9938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d13609cda6e94f68c1bb7f21fab2cb1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a1d13609cda6e94f68c1bb7f21fab2cb1">embArray_addStitch</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#ae92ded87da0dcaaae8f7c7bc880fd1b0">EmbStitch</a> b)</td></tr>
<tr class="separator:a1d13609cda6e94f68c1bb7f21fab2cb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7afecc6b39df1016ccda59227922483"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#ae7afecc6b39df1016ccda59227922483">embArray_addVector</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a, <a class="el" href="embroidery_8h.html#a16fa26764453571074cb85a7574738d4">EmbVector</a> b)</td></tr>
<tr class="separator:ae7afecc6b39df1016ccda59227922483"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c70d3ca840560a5f9884f63f06f15bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="array_8c.html#a2c70d3ca840560a5f9884f63f06f15bf">embArray_free</a> (<a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *a)</td></tr>
<tr class="separator:a2c70d3ca840560a5f9884f63f06f15bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a962196043b716654439ba3d8bd306f64" name="a962196043b716654439ba3d8bd306f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a962196043b716654439ba3d8bd306f64">&#9670;&nbsp;</a></span>embArray_addArc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addArc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a09945e6e919629c5787e61582c712ba1">EmbArc</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add an arc <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="aa5e33f49a954b6519c3a05217d850a3e" name="aa5e33f49a954b6519c3a05217d850a3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5e33f49a954b6519c3a05217d850a3e">&#9670;&nbsp;</a></span>embArray_addCircle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addCircle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a87fc13ccd4dbaa7de7c85efde17bba0e">EmbCircle</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a circle <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a2304cb63de8ef8fe3c922b3a12379bd8" name="a2304cb63de8ef8fe3c922b3a12379bd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2304cb63de8ef8fe3c922b3a12379bd8">&#9670;&nbsp;</a></span>embArray_addEllipse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addEllipse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a4e48ebde5bd4d82b875f98b347bdd62c">EmbEllipse</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add an ellipse <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a4dfd8819459125dcf1cdadca56a9ffa9" name="a4dfd8819459125dcf1cdadca56a9ffa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dfd8819459125dcf1cdadca56a9ffa9">&#9670;&nbsp;</a></span>embArray_addFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addFlag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aa8d187896cf7654438e8108ea481b11a">EmbFlag</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a flag <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a776545527fb7995f227fe97dac89718a" name="a776545527fb7995f227fe97dac89718a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a776545527fb7995f227fe97dac89718a">&#9670;&nbsp;</a></span>embArray_addLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addLine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a62e08237073617de993166ed4a9ab085">EmbLine</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a line <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a756ba04d08ed40f6b20c3021876fa53b" name="a756ba04d08ed40f6b20c3021876fa53b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a756ba04d08ed40f6b20c3021876fa53b">&#9670;&nbsp;</a></span>embArray_addPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addPath </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#af29045dfeebafdcb66d114b390c4a686">EmbPath</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a path <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a5adb6549f01b7f271bf8acd2cdc5da33" name="a5adb6549f01b7f271bf8acd2cdc5da33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5adb6549f01b7f271bf8acd2cdc5da33">&#9670;&nbsp;</a></span>embArray_addPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addPoint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a835ccc3aedf71b57dca6130be87ea463">EmbPoint</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a point <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a7d4a63ac1958f13197dd7e7fd94f5d62" name="a7d4a63ac1958f13197dd7e7fd94f5d62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d4a63ac1958f13197dd7e7fd94f5d62">&#9670;&nbsp;</a></span>embArray_addPolygon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addPolygon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a2d6988a5f4ba24d26c7eff65dbc9d029">EmbPolygon</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a polygon <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a7fe0b8d0f83a3ed40ab37e9b93b8f4af" name="a7fe0b8d0f83a3ed40ab37e9b93b8f4af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fe0b8d0f83a3ed40ab37e9b93b8f4af">&#9670;&nbsp;</a></span>embArray_addPolyline()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addPolyline </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#ab5563c868d8f8174d5be764808a647dd">EmbPolyline</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a polyline <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a8d7d2de889cb8778bf80a6c776fb9938" name="a8d7d2de889cb8778bf80a6c776fb9938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d7d2de889cb8778bf80a6c776fb9938">&#9670;&nbsp;</a></span>embArray_addRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#ac2f33b151fc40a0da3b14379aa0ec653">EmbRect</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a rectangle <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a1d13609cda6e94f68c1bb7f21fab2cb1" name="a1d13609cda6e94f68c1bb7f21fab2cb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d13609cda6e94f68c1bb7f21fab2cb1">&#9670;&nbsp;</a></span>embArray_addStitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addStitch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#ae92ded87da0dcaaae8f7c7bc880fd1b0">EmbStitch</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a stitch <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="ae7afecc6b39df1016ccda59227922483" name="ae7afecc6b39df1016ccda59227922483"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7afecc6b39df1016ccda59227922483">&#9670;&nbsp;</a></span>embArray_addVector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_addVector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a16fa26764453571074cb85a7574738d4">EmbVector</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Add a vector <em>b</em> to the EmbArray <em>a</em> and it returns if the element was successfully added. </p>

</div>
</div>
<a id="a60f927b9cef227b5c19a8625580a9bad" name="a60f927b9cef227b5c19a8625580a9bad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60f927b9cef227b5c19a8625580a9bad">&#9670;&nbsp;</a></span>embArray_copy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void embArray_copy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Copies all entries in the EmbArray struct from <em>src</em> to <em>dst</em>. </p>

</div>
</div>
<a id="a67090c780a2818616877fb42b3a42e5c" name="a67090c780a2818616877fb42b3a42e5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67090c780a2818616877fb42b3a42e5c">&#9670;&nbsp;</a></span>embArray_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> * embArray_create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Allocates memory for an EmbArray of the type determined by the argument <em>type</em>. </p>

</div>
</div>
<a id="a2c70d3ca840560a5f9884f63f06f15bf" name="a2c70d3ca840560a5f9884f63f06f15bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c70d3ca840560a5f9884f63f06f15bf">&#9670;&nbsp;</a></span>embArray_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void embArray_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Free the memory of EmbArray <em>a</em>, recursively if necessary. </p>

</div>
</div>
<a id="a50c23acfd8e099acd98cc99bc01801ab" name="a50c23acfd8e099acd98cc99bc01801ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50c23acfd8e099acd98cc99bc01801ab">&#9670;&nbsp;</a></span>embArray_resize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int embArray_resize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#aebe8b1561a59d167cfe6613863a671ca">EmbArray</a> *&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Resizes the array <em>a</em> to be CHUNK_SIZE entries longer if and only if the amount of room left is less than 3 entries. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_dc9e1e299a0b26f222fe6c0a872463f0.html">extern</a></li><li class="navelem"><a class="el" href="dir_6a8aa8af2875e58e82a0145491f7a8e2.html">libembroidery</a></li><li class="navelem"><a class="el" href="dir_50a7dc5dba8160ac8332d90912e622db.html">src</a></li><li class="navelem"><a class="el" href="array_8c.html">array.c</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
